<?php
/**
//自动生成参数 http://jiekou.hkbao.com 接口文档（参数部分）
|commentId |否  |INT |注释id   |
|tableName |否  |VARCHAR |表名   |
|fieldName |否  |VARCHAR |字段名称   |
|comment |否  |TEXT |注释内容   |
 */

class TableComment extends Base
{
    
	private $commentId;//注释id
	private $tableName;//表名
	private $fieldName;//字段名称
	private $comment;//注释内容

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if($this->$name!=$value){
            $this->changedFiled[] = $name;
            $this->loadedFiled[] = $name;
            $this->$name=$value;
            $this->arr[$name] = $value;
        }
    }

    public  function table()
    {
        return 'tbl_table_comment';
    }
    
    public  function key(){
        return 'commentId';
    }



    public function className()
    {
        return 'TableComment';
    }
    
    public  function field()
    {
        return array (
  'commentId' => 
  array (
    0 => 'INT',
    1 => 11,
    2 => '注释id',
  ),
  'tableName' => 
  array (
    0 => 'VARCHAR',
    1 => 128,
    2 => '表名',
  ),
  'fieldName' => 
  array (
    0 => 'VARCHAR',
    1 => 128,
    2 => '字段名称',
  ),
  'comment' => 
  array (
    0 => 'TEXT',
    1 => 0,
    2 => '注释内容',
  ),
);
    }

    public  function noLoad()
    {
        return array();
    }

}